package cn.jiyun.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Author weiyuanhang
 * @data: 2023/8/9 000911:27
 * @Package cn.jiyun.entity
 * @email 3185757326@qq.com
 */
@Data
public class Contest {
    @TableId(value = "cid",type = IdType.AUTO)
    private Integer cid;
    private String cname;
    private Integer squals;
    private String bid;
    private Integer tid;
    private Integer isdelete;
    private String img;
    private Integer status;
    private String sort;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    private Date startTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    private Date endTime;
    private String progress;
    private String infos;
    private String menber;
}
